<template>
  <div>
      <p class="phonerighttop">
            充值卡兑换
            <button class="Abut" @click="tobill()">查看账单</button>
        </p>
        <div class="phonemain">
            <input type="text"  value="请输入充值卡兑换码进行充值" @click="tophone($event)" @blur="phones($event)">
            <input id="phonesub" type="submit" value="充值" @click="tosuccess()">
        </div>
  </div>
</template>

<script>
import Bus from './Bus';
export default {
    name:'Account1',
    methods:{
        tobill(){
            this.$emit('xin2');
        }   
    },
    mounted(){
        Bus.$on('xin',data=>{
            console.log(data);
        })
    }
}
</script>

<style scoped>
.phonerighttop {
    height: 56px;
    border-bottom: 1px solid #e7e7e7;
    line-height: 56px;
    text-align: left;
    padding-left: 20px;
    color: #323333;
    font-size: 18px;
}
/* 查看账单 */
.Abut {
    background: #498e3d;
    color: #fff;
    font-size: 14px;
    height: 30px;
    width: 90px;
    border-radius: 5px;
    position: absolute;
    top: 13px;
    right: 20px;
}
/* 内容 */
.phonemain {
    display: flex;
    flex-direction: column;
    position: relative;
}
input  {
    height: 42px;
    background: #fff;
    border: 1px solid #d3d3d3;
    padding-left: 13px;
    font-size: 16px;
    width: 475px;
    margin-top: 50px;
    margin-left: 30px;
    margin-bottom: 50px;
    color: #999;
}
#phonesub {
    height: 50px;
    width: 150px;
    font-size: 20px;
    color: #fff;
    background: #f08200;
    border-radius: 6px;
    border: none;
    outline: none;
    padding-left: 0;
}
</style>